package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import java.util.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 初始合同执行-纠纷
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_dispute`")
public class ContractInitialDisputePo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 批次号
    @Comment(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    @TableField(value = "`batch`", jdbcType = JdbcType.VARCHAR)
    private String batch;

    // 纠纷经办人
    // 【用户表】
    @Comment(value = "纠纷经办人")
    @TableField(value = "`dispute_user_id`", jdbcType = JdbcType.BIGINT)
    private Long disputeUserId;

    // 合同纠纷原因
    @Comment(value = "合同纠纷原因")
    @Size(max = 1000, message = "合同纠纷原因不能超过1000个字符")
    @TableField(value = "`dispute_reason`", jdbcType = JdbcType.VARCHAR)
    private String disputeReason;

    // 对方意见
    @Comment(value = "对方意见")
    @Size(max = 1000, message = "对方意见不能超过1000个字符")
    @TableField(value = "`dispute_second`", jdbcType = JdbcType.VARCHAR)
    private String disputeSecond;

    // 对方意见记录时间
    @Comment(value = "对方意见记录时间")
    @TableField(value = "`dispute_second_time`", jdbcType = JdbcType.TIMESTAMP)
    private Date disputeSecondTime;

    // 我方意见
    @Comment(value = "我方意见")
    @Size(max = 1000, message = "我方意见不能超过1000个字符")
    @TableField(value = "`dispute_first`", jdbcType = JdbcType.VARCHAR)
    private String disputeFirst;

    // 我方意见记录时间
    @Comment(value = "我方意见记录时间")
    @TableField(value = "`dispute_first_time`", jdbcType = JdbcType.TIMESTAMP)
    private Date disputeFirstTime;

    // 处理结果
    @Comment(value = "处理结果")
    @Size(max = 1000, message = "处理结果不能超过1000个字符")
    @TableField(value = "`dispute_result`", jdbcType = JdbcType.VARCHAR)
    private String disputeResult;

    // 纠纷状态
    // 枚举取值:ContractInitialDisputeState
    @Comment(value = "纠纷状态", enumType = "ContractInitialDisputeState")
    @Size(max = 20, message = "纠纷状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
